package com.study.sbsummary.config.apollo;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yanzhao
 * @date 2022/03/07
 */
@Configuration
@EnableApolloConfig
public class ApolloConfigListener {
    @Bean
    public ApolloRefreshConfig apolloRefreshConfig() {
        return new ApolloRefreshConfig();
    }
    @Bean
    public ApolloConfigBean apolloConfigBean() {
        return new ApolloConfigBean();
    }
}
